package com.example.newbilityblog.blog.infrastructure.entity;

import com.example.newbilityblog.common.jpa.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@NoArgsConstructor
@Table(name = "blog")
public class BlogEntity extends BaseEntity {
    @Id
    private Long id;

    @Column
    private String title;

    @Column
    private String author;

    @Column
    private String coverImage;

    @Column
    private String content;

    @Column(name = "source_markdown_content")
    private String sourceMarkDownContent;

    @Column
    private String status;

    @Column
    private Long views;

    @Column
    private Boolean enableComment;
}
